﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Win.master" AutoEventWireup="true" CodeBehind="OrderComplaintAdd.aspx.cs" Inherits="Runda.EShop.Web.Order.OrderComplaintAdd" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHeader" runat="server">
<script type="text/javascript">
    var flag = false;
    $(document).ready(function () {
        var maxLength = 500;
        var text = $("#txtContent").val();
        var counter = text.length;
        $("#numtj var").text(maxLength - counter);
        $(document).keyup(function () {
            var text = $("#txtContent").val();
            var counter = text.length;
            $("#numtj var").text(maxLength - counter);

            if ((maxLength - counter) < 0) {
                flag = false;
            }
            else {
                flag = true;
            }
        });
    });

    function Check() {
        if ($("#txtContent").val() == '') {
            alert('请输入内容');
            return false;
        }
        if (!flag) {
            alert('字数超出限制');
            return false;
        }
    }
</script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="chpMain" runat="server">
 <table width="100%" border="0" cellspacing="0" cellpadding="0" style="width: 700px;" class="margin-left15 l i_center_table0 margin-top18"> 
 <tr>
    <td>涉及订单</td><td>
     <asp:Literal ID="ltlOrderCode" runat="server"></asp:Literal></td><td>投诉类型</td><td>
     <asp:DropDownList ID="ddlType" runat="server">
     </asp:DropDownList>
     </td>
 </tr>
 <tr>
 <td>投诉内容</td><td colspan="3">
     <asp:TextBox ID="txtContent" runat="server" Height="78px" TextMode="MultiLine" ClientIDMode="Static"
         Width="500px" MaxLength="500"></asp:TextBox>
         <p id="numtj">你还可以输入<var style="color:#C00">--</var>个字符。</p>
     </td>
 </tr>
 <tr>
 <td>&nbsp;</td><td colspan="3">
     <asp:Button ID="btnSubmit" runat="server" onclick="btnSubmit_Click" OnClientClick="return Check();" Width="120px"
         Text="提交我的投诉" />
&nbsp;
     <asp:Button ID="btnCancel" runat="server" Text="取消" />
     </td>
 </tr>
 </table>
</asp:Content>
